<form method="post" action="index.cfm?c=imageeditor&a=saveas" name="myfuckingform" target="_top">
<cfif isdefined('cookie.dir')>
	<cfset dir_select = "#cookie.dir#">
<cfelse>
	<cfset dir_select = "/">
</cfif>
<cfset cur_step = '#cookie.current_step#_'>
<cfset orig_imagename = replace(cookie.imagefile, cur_step, '')>
<table width="100%" border="0" cellpadding="0" cellspacing="6">
  <tr>
    <td width="20%">Folder: </td>
    <td>
    <cfdirectory name="qfolders" action="list" directory="#request.basepath#images" type="dir">
    <select name="dir" id="dir">
    	<option value="/" <cfif dir_select IS "/">selected="selected"</cfif>>IMAGES FOLDER</option>
		<cfoutput query="qfolders">
        	<option value="/#name#/" <cfif dir_select IS "/#name#/">selected="selected"</cfif>>#name#</option>
        </cfoutput>
    </select>
    </td>
  </tr>
  <tr>
    <td width="20%">File Name:</td>
    <td><cfoutput><input name="new_imagefile" type="text" id="new_imagefile" value="#orig_imagename#" size="40" maxlength="100"/></cfoutput></td>
  </tr>
  <tr>
    <td align="center" colspan="2">
    <input type="submit" name="SubmitButton" value="Save Image" id="abutton"></td>
  </tr>
</table>
</form>















